<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <p:dialog id="dlgPrint" width="450" modal="true" widgetVar="printDialog" header="Imprimir" closable="false" >
        <p:outputLabel value="Deseja imprimir esta averbação ?" />
        <div class="clear"/>
       
        
        <div class="buttonAction" style="padding-top: 25px">
            <p:commandButton title="Imprimir"
                             styleClass="printButton"
                             value="Sim" 
                             ajax="false" update="@form"
                             onclick="this.form.target='_blank';"
                             actionListener="#{managerAverbacao.imprimirAverbacao(managerAverbacao.averbacao)}"
                             icon="ui-icon-print" />
            <p:commandButton value="Não" icon="ui-icon-close" actionListener="#{managerAverbacao.redirect()}" />
        </div>
<!--        <script>
            $('.printButton').mouseup(function(){     
                window.open("pesquisarimovel.xhtml", "_SELF");
            });
        </script>-->
    </p:dialog>
</html>